package io.renren.uitls;

import cn.hutool.core.io.FileUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.util.DigestUtils;

import java.nio.charset.Charset;

/**
 * @author: xiaomi
 * @date: 2022/4/10
 * @description:
 */
@Slf4j
public class MD5 {
    public static void main(String[] args) {
        String path = "D:\\my-notes\\design\\分布式项目设计点及落地方案实战记录.md";
        String content = FileUtil.readString(path, Charset.defaultCharset());
        String md5 = DigestUtils.md5DigestAsHex(content.getBytes());
        log.info(md5);
    }


}
